package com.aizuda.boot.modules.business.template.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("contract_template_usage")
@Schema(description = "合同模板使用记录实体")
public class ContractTemplateUsageEntity {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "用户ID")
    private Long employeeId;

    @Schema(description = "合同模板ID")
    private Integer templateId;

    @Schema(description = "最近使用时间")
    private LocalDateTime usedAt;

    @Schema(description = "首次使用时间")
    private LocalDateTime createdAt;
}
